import React, { useState, useEffect } from 'react';
import { Rate, Toast } from 'antd-mobile';

const Score = (props) => {
  console.log('props', props);
  const { onChange, value } = props;
  const handleChange = (val) => {
    console.log('val-------{}', val);
    onChange && onChange(val);
  };

  return (
    <div>
      <Rate {...props} onChange={handleChange} value={value} />
    </div>
  );
};

export default Score;
